Set Color Sensor
Function:
magicbox.set_color_sensor(port, enable, version)Description: set the enabling status and version of color sensor
Required parameter:
- port: connect the color sensor to the port of Magic Box. range: 1~6
- enable: enable the color sensor. True: enable; False: disable
- version: version of color sensor. 0: V1.0; 1: V2.0
Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_color_sensor(port=1, enable=True, version=1)Connect the color sensor to Dobot Magic Box Port 1. Enable the color sensor, and set the version as V1.0.